@echo off
@setlocal enabledelayedexpansion
::获取当前的路径
set libs=".;";

::获取框架路径
SET  service_container_path=%cd%
SET  service_container_lib_path=%service_container_path%\lib

for /f %%i in ('dir /b %service_container_lib_path%\*.jar^|sort') do (
set  libs=!libs!%service_container_lib_path%\%%i;
)

::获取自定义服务路径
cd ..
cd user_service
SET  user_service_path=%cd%
SET  user_service_lib_path=%user_service_path%\lib

for /f %%i in ('dir /b %user_service_lib_path%\*.jar^|sort') do (
set  libs=!libs!%user_service_lib_path%\%%i;
)

::设置jdk参数,执行
set JAVA_OPTS=-Xms128m -Xmx256m
java -cp !libs! beautiful.butterfly.distributed_service_container.application.BootStrap
echo 'my qq is 330937205,if you need help,please contact me'
pause